package com.lovo.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;

@Data
@Component
@TableName("t_permission")
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
public class Permission implements Serializable {

    @TableId(value = "t_permission",type = IdType.AUTO)
    private Integer permissionId;
    private String permissionName;
    private String permissionUrl;
    private Integer permissionPid;

    @TableField(exist = false)
    private List<Permission> children;
}
